<?php
class ui_friend_action_del extends ui {
	/**
	 * 删除好友
	 *
	 * @param Object $S
	 * @param Array $param = array (
	 * 			'id'	=> 		friend 表中的主键id
	 * )
	 */
	public function __construct($S, $param) {
		parent::__construct();
		
		$data_friend = new data_friend();
		$data = $data_friend->del($this->uid, $param['id']);
		
		if ($data) {
			$S->assign('data', 'true');
		} else {
			$S->assign('data', 'false');
		}
	}
}
?>